
createSwiftSupport() {
  mkdir "SwiftSupport"
  FRAMEWORKS_DIR_PATH=$1
  for file in $(find $FRAMEWORKS_DIR_PATH -type f -name "*.dylib")
  do
    filename=$(basename "$file")
    echo $filename
    # 在这里添加你想要对文件执行的其他操作
    ONE_PATH='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/iphoneos'
    TWO_PATH='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphoneos'
    THREE_PATH='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos'
    if [ -e "$ONE_PATH/$filename" ]; then
      cp -r "$ONE_PATH/$filename" SwiftSupport
    elif [ -e "$TWO_PATH/$filename" ]; then
      cp -r "$TWO_PATH/$filename" SwiftSupport
    elif [ -e "$THREE_PATH/$filename" ]; then
      cp -r "$THREE_PATH/$filename" SwiftSupport
    else
      echo "文件不存在:$file"
    fi
    rm -rf SwiftSupport/.DS_Store
  done
}